Skip to main content

PUT Existing Live Video

Overview


The table below provides key details about the PUT method for updating a Live Video by id.

PUT Existing Live Video
MethodPUT
URL or Endpoint/api/v2/projectId/live-videos/id
HeadersAuthorization
Content Typeapplication/json
Parametersid, projectId
Request Bodytitle, description, author, publishDate, publishEndDate

The description of the URL parameter is as follows:

id URL Parameter
URL Parameter Nameid
MandatoryYes
Typestring
DescriptionUnique Id of the live video.
projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

The description of the body parameters is as follows:

Parameter NameMandatoryTypeDescription
TitleYesstringTitle of the live video
DescriptionNostringDescription of the live video
AuthorNostringThe name of the author of the live video.
PublishDateNostring($date-time)The date and time when the video is scheduled to be published.
PublishEndDateNostring($date-time)The date and time when the publication of the video is set to end.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": {
"publicId": "string",
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"playbackUrl": "string",
"thumbnail": "string",
"channelPublicId": "string",
"channelName": "string",
"channelTitle": "string",
"liveStatus": "string",
"author": "string",
"publishDate": "2024-11-12T15:47:45.067Z",
"publishEndDate": "2024-11-12T15:47:45.067Z",
"startDateUTC": "2024-11-18T09:34:35.875Z",
"endDateUTC": "2024-11-18T09:34:35.875Z",
"dvrEnabled": true,
"canCutAndPublish": true,
"canStopAndCut": true,
"canStopWithoutSaving": true
},
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from the back-end.
resultobjectReturns the response object containing detailed information about the live video.
publicIdstringReturns the public identifier of the live video.
idstringReturns the identifier of the live video.
namestringReturns a GUID that is randomly generated.
titlestringReturns the title of the live video.
descriptionstringReturns the description of the live video.
playbackUrlstringReturns a file URL where the livestream can be accessed for playback.
thumbnailstringReturns the URL of the thumbnail for the video.
channelPublicIdstringReturns the public identifier of the channel.
channelNamestringReturns the name of the channel.
channelTitlestringReturns the title of the channel.
liveStatusstringIndicates the live status of the live video.
authorstringReturns the author of the live video.
publishDatestring (date-time)Returns the date and time when the video was created.
publishEndDatestring (date-time) or nullReturns the date and time when the publication of the video is set to end.
startDateUTCstringRepresents the start date and time of the event in UTC format.
endDateUTCstringRepresents the end date and time of the event in UTC format.
dvrEnabledbooleanIndicates if DVR functionality is enabled for the video.
canCutAndPublishbooleanIndicates if the video can be cut and published.
canStopAndCutbooleanIndicates if the video can be stopped and cut.
canStopWithoutSavingbooleanIndicates if the video can be stopped without saving.
resultInfostringReturns extra information about the result. (May be null)
statusCodeintegerReturns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed